<template>
	<div class="goodsdesc">
		<h3>{{desc.title}}</h3>
		<hr>
		<div v-html="desc.content">
		</div>
	</div>
</template>

<script>
	export  default{
		data(){
			return{
				desc:"",
				id:this.$route.params.id
			}
		}
		,
		mounted(){
			this.getDoodsDesc();
		},
		methods:{
			getDoodsDesc(){
				this.$http.get("api/goods/getdesc/"+this.id).then(data=>{
					console.log(data)
					if(data.body.status==0){
						this.desc=data.body.message[0];
					}
					console.log(data)
				})
			}
		}
	}
</script>

<style  lang="less"  >
.goodsdesc{
	padding:4px;
	h3{
		font-size: 14px;
		color: #007AFF;
		margin: 20px  0;
		text-align: center;
	}
	.gomeImgLoad{
		width: 100%;
		height: 100%;
		margin: 0;
		padding:0
	}
	
	
}
</style>